package org.enlongWu.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.enlongWu.pojo.ColdStorage;
import org.enlongWu.pojo.Sensor;

import java.util.List;

@Mapper
public interface SensorMapper {
    //新增记录
    int insert(Sensor sensor);

    Sensor selectById(String id);

    List<Sensor> list(String searchString);

    List<Sensor> listByCS(Integer CSId);

    int update(Sensor sensor);

    int unbindByCSId(Integer CSId);
//    List<Message> list(Integer userId, Integer messageType, String state);
//
//    @Select("select * from message where id = #{id}")
//    Message searchById(Integer id);
//
//    void setRead(Integer id);
//
//    List<Message> applicationGroupBySendTime(Integer senderId);
//
//    @Delete("delete from message where id = #{id}")
//    int delete(Integer id);
//
//    @Delete("delete from message where message_type=1 and content=#{applicationId}")
//    int deleteByContent(String applicationId);
}
